package com.onpositive.notes.argumnets;

import com.onpositive.notes.model.IArgumentValidator;

public class EmptyStringFilter implements IArgumentValidator {

	/**
	 * 
	 */
	private static final long serialVersionUID = -47601413031049038L;

	@Override
	public boolean validate(Object value) {
		
		if( !(value instanceof String) )
			return false ;
		
		String str = (String) value ;
		str = str.trim() ;
		return str.length() != 0 ;
	}

}
